package com.aspose.cells.a.d;

public class zgo {
   public static void a(com.aspose.cells.zal var0, com.aspose.cells.b.a.b.zt var1, boolean var2) throws Exception {
      b(var0);
      a(var0, var1);
      a(var0, var2);
      var0.b();
   }

   public static void a(com.aspose.cells.zal var0) throws Exception {
      b(var0);
      var0.b();
   }

   private static void b(com.aspose.cells.zal var0) throws Exception {
      var0.a("psf:PrintTicket");
      var0.c("version", "1");
      var0.c("xmlns:psf", "http://schemas.microsoft.com/windows/2003/08/printing/printschemaframework");
      var0.c("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
      var0.c("xmlns:xsd", "http://www.w3.org/2001/XMLSchema");
      var0.c("xmlns:ns0000", "http://schemas.microsoft.com/windows/2006/06/printing/printschemakeywords/microsoftxpsdocumentwriter");
      var0.c("xmlns:psk", "http://schemas.microsoft.com/windows/2003/08/printing/printschemakeywords");
   }

   private static void a(com.aspose.cells.zal var0, com.aspose.cells.b.a.b.zt var1) throws Exception {
      boolean var2 = var1.b() > var1.c();
      int var3 = var2 ? zaj.b((double)var1.c()) : zaj.b((double)var1.b());
      int var4 = var2 ? zaj.b((double)var1.b()) : zaj.b((double)var1.c());
      a(var0, "psk:PageMediaSize");
      b(var0, zgn.a(var1));
      c(var0, "psk:MediaSizeWidth");
      a(var0, "xsd:integer", com.aspose.cells.b.a.zo.a(var3));
      var0.c();
      c(var0, "psk:MediaSizeHeight");
      a(var0, "xsd:integer", com.aspose.cells.b.a.zo.a(var4));
      var0.c();
      var0.c();
      var0.c();
      a(var0, "psk:PageOrientation");
      b(var0, var2 ? "psk:Landscape" : "psk:Portrait");
      var0.c();
      var0.c();
   }

   private static void a(com.aspose.cells.zal var0, boolean var1) throws Exception {
      a(var0, var1 ? "psk:PageInputBin" : "psk:JobInputBin");
      b(var0, "psk:AutoSelect");
      var0.c();
      var0.c();
   }

   private static void a(com.aspose.cells.zal var0, String var1) throws Exception {
      var0.b("psf:Feature");
      var0.c("name", var1);
   }

   private static void b(com.aspose.cells.zal var0, String var1) throws Exception {
      var0.b("psf:Option");
      var0.c("name", var1);
   }

   private static void c(com.aspose.cells.zal var0, String var1) throws Exception {
      var0.b("psf:ScoredProperty");
      var0.c("name", var1);
   }

   private static void a(com.aspose.cells.zal var0, String var1, String var2) throws Exception {
      var0.b("psf:Value");
      var0.c("xsi:type", var1);
      var0.c(var2);
      var0.c();
   }
}
